package stark.app;

import android.app.Activity;

import com.stark.picselect.PhotoSelectorBuilder;
import com.stark.picselect.config.PhotoConfig;
import com.stark.picselect.entity.SelectMediaEntity;
import com.stark.picselect.interfaces.OnSelectResultListener;

import java.util.List;

/**
 * Author：daizhongbin on 2021/9/2
 * Email：1027154338@qq.com
 * Desc:
 */
public class MediaSelectUtil {

    public static void pickMedia(Activity activity, PhotoConfig.Mode mode, int maxCount,
                                 OnSelectResultListener<List<SelectMediaEntity>> listener) {
        PhotoSelectorBuilder.builder(activity)
                .mode(mode)
                .maxCount(maxCount)
                .listener(listener);
    }

}
